package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 招聘申请业务对象 oa_human_recruit
 *
 * @author ruoyi
 * @date 2023-06-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaHumanRecruitBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    private String departId;

    @NotBlank(message = "招聘部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String departName;
    /**
     * 申请人
     */
//    @NotBlank(message = "申请人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicant;

    private String applicantId;
    /**
     * 申请日期
     */
    @NotNull(message = "申请日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date recruitDate;

    /**
     * 招聘岗位
     */
    @NotBlank(message = "招聘岗位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recruitStation;

    /**
     * 拟招聘人数
     */
    @NotBlank(message = "拟招聘人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String strength;

    /**
     * 期望到岗日期
     */
    @NotNull(message = "期望到岗日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date expectedDate;

    /**
     * 岗位职责
     */
    @NotBlank(message = "岗位职责不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responsibility;

    /**
     * 任职要求
     */
    @NotBlank(message = "任职要求不能为空", groups = { AddGroup.class, EditGroup.class })
    private String requirement;

    /**
     * 附件
     */
    private String attachment;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date recruitStartDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date recruitEndDate;

    /**
     * 创建
     */
    private String createUser;
}
